package main

import "flag"

func main() {
	var url string
	var dir string
	flag.StringVar(&url, "url", "", "crawl web url")
	flag.StringVar(&dir, "dir", ".", "save directory")

	transport := make(chan Transport)
	exit := make(chan struct{}, 1)

	_ = NewCrawler(url, transport, exit)
	_ = NewSaver(dir, transport, exit)
}
